package com.ssy.lingxi.platform.manage.model.request.seo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * SEO - 新增/修改 - 请求实体类
 * @author fhj
 * @version 2.0.0
 * @date 2021/04/07
 */
@Data
public class SeoRequest {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空", groups = {SeoRequest.Update.class})
    private Long id;

    @ApiModelProperty(value = "页面名称")
    @NotEmpty(message = "页面名称不能为空", groups = {SeoRequest.Add.class, SeoRequest.Update.class})
    private String name;

    @ApiModelProperty(value = "页面类型：1：平台首页；2：企业商城；3：渠道服务；4：积分商城；5：企业直采；6：物流服务；7：加工服务；8：行情资讯；")
    @NotNull(message = "页面类型不能为空", groups = {SeoRequest.Add.class, SeoRequest.Update.class})
    private Integer type;

    @ApiModelProperty(value = "访问链接")
    private String link;

    @NotEmpty(message = "Title不能为空", groups = {SeoRequest.Add.class, SeoRequest.Update.class})
    @ApiModelProperty(value = "Title")
    private String title;

    @NotEmpty(message = "Description不能为空", groups = {SeoRequest.Add.class, SeoRequest.Update.class})
    @ApiModelProperty(value = "Description")
    private String description;

    @NotEmpty(message = "Keywords不能为空", groups = {SeoRequest.Add.class, SeoRequest.Update.class})
    @ApiModelProperty(value = "Keywords")
    private String keywords;

    public interface Add {
    }

    public interface Update {
    }
}
